package com.nmsl.nurse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 住院登记对象 hospitalization_registration
 * 
 * @author mengdi
 * @date 2025-02-17
 */
@Data
public class MHospitalizationRegistration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 登记编号 */
    private Long registrationId;

    /** 患者id（患者表） */
    @Excel(name = "患者id", readConverterExp = "患=者表")
    private Long patientId;

    /** 入院时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入院时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date admissionTime;

    /** 科室id（科室表） */
    @Excel(name = "科室id", readConverterExp = "科=室表")
    private Long departmentId;

    /** 床位编号（床位表） */
    @Excel(name = "床位编号", readConverterExp = "床=位表")
    private Long bedNumber;

    /** 员工编号（员工表）（医生） */
    @Excel(name = "员工编号", readConverterExp = "员=工表")
    private Long doctorId;

    /** 紧急联系人编号（紧急联系人表） */
    @Excel(name = "紧急联系人编号", readConverterExp = "紧=急联系人表")
    private Long emergencyContactId;

    /** 员工编号（员工表）（护士） */
    @Excel(name = "员工编号", readConverterExp = "员=工表")
    private Long nurseId;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String ext1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String ext2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String ext3;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String ext4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String ext5;

    public void setRegistrationId(Long registrationId) 
    {
        this.registrationId = registrationId;
    }

    public Long getRegistrationId() 
    {
        return registrationId;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setAdmissionTime(Date admissionTime) 
    {
        this.admissionTime = admissionTime;
    }

    public Date getAdmissionTime() 
    {
        return admissionTime;
    }
    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setBedNumber(Long bedNumber) 
    {
        this.bedNumber = bedNumber;
    }

    public Long getBedNumber() 
    {
        return bedNumber;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setEmergencyContactId(Long emergencyContactId) 
    {
        this.emergencyContactId = emergencyContactId;
    }

    public Long getEmergencyContactId() 
    {
        return emergencyContactId;
    }
    public void setNurseId(Long nurseId) 
    {
        this.nurseId = nurseId;
    }

    public Long getNurseId() 
    {
        return nurseId;
    }
    public void setExt1(String ext1) 
    {
        this.ext1 = ext1;
    }

    public String getExt1() 
    {
        return ext1;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }
    public void setExt3(String ext3) 
    {
        this.ext3 = ext3;
    }

    public String getExt3() 
    {
        return ext3;
    }
    public void setExt4(String ext4) 
    {
        this.ext4 = ext4;
    }

    public String getExt4() 
    {
        return ext4;
    }
    public void setExt5(String ext5) 
    {
        this.ext5 = ext5;
    }

    public String getExt5() 
    {
        return ext5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("registrationId", getRegistrationId())
            .append("patientId", getPatientId())
            .append("admissionTime", getAdmissionTime())
            .append("departmentId", getDepartmentId())
            .append("bedNumber", getBedNumber())
            .append("doctorId", getDoctorId())
            .append("emergencyContactId", getEmergencyContactId())
            .append("nurseId", getNurseId())
            .append("ext1", getExt1())
            .append("ext2", getExt2())
            .append("ext3", getExt3())
            .append("ext4", getExt4())
            .append("ext5", getExt5())
            .toString();
    }
}
